package com.example.service.impl.siyunCouponsServiceImpl;

import com.example.dao.siyunCouponsDao.CouponsUsedDao;
import com.example.pojo.siyunCouponsPojo.CouponsUsed;
import com.example.service.siyunCouponsService.CouponsUsedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 杨佳欣
 * @Description: TODO
 * @DateTime: 2022/11/6 21:42
 **/

@Service
public class CouponsUsedServiceImpl implements CouponsUsedService {
    @Autowired
    private CouponsUsedDao couponsUsedDao;

    @Override
    public List<CouponsUsed> getCouponsUsedAll() {
        return couponsUsedDao.getCouponsUsedAll();
    }

    @Override
    public List<CouponsUsed> getCouponsUsedFuzzyCheck(CouponsUsed couponsUsed) {
        return couponsUsedDao.getCouponsUsedFuzzyCheck(couponsUsed);
    }

    @Override
    public CouponsUsed getCouponsUsedByUserId(String userId) {
        return couponsUsedDao.getCouponsUsedByUserId(userId);
    }
}
